<?php
$info = array(
    'asc'   => 'class="asc" title="'.$this->translate('TOOLTIP_HELPER_ORDER_ASC').'"',
	'desc'  => 'class="desc" title="'.$this->translate('TOOLTIP_HELPER_ORDER_DESC').'"'
);
$request    = Zend_Controller_Front::getInstance()->getRequest();
$defaultColumnName = COLUMN_DEFAULT;
if( $this->is_default )
{
	$defaultColumnName	= $this->column['sort_column'];
}
$options	= array(
	'column_default'	=> $defaultColumnName,
	'sort_value'		=> $this->column['sort_default'],
);
$sort       = $request->getParam(PARAM_SORT_DEFAULT,array($defaultColumnName => $this->column['sort_default']));
?>
<a
    href="<?php echo $this->url()?>?<?php echo http_build_query(array_merge($_GET,$this->sortBuilder($this->column['sort_column'],$this->column['sort_default'],$options)))?>"    
    <?php if( isset($sort[$this->column['sort_column']]) ):?>
        <?php if( strcasecmp($sort[$this->column['sort_column']], 'DESC') === 0 ):?>
            <?php echo $info['desc'] ?>
        <?php else:?>
            <?php echo $info['asc'] ?>
        <?php endif;?>
    <?php else:?>
        title="<?php echo $this->translate('SORT_BY_'.strtoupper($this->column['sort_column'])) ?>"
    <?php endif;?>
>
    <span><?php echo $this->translate($this->label) ?></span>
</a>